from django.conf.urls import url
from apps.areas import views

urlpatterns = [
    url(r'^areas/$', views.AreasView.as_view(), name='areas'),
    url(r'^addresses/$', views.AddressesView.as_view(), name='address'),
    url(r'^addresses/create/$', views.CreateAddressView.as_view(), name='addresscreate'),
    url(r'^addresses/(?P<address_id>\d+)/$', views.UpdateAddressView.as_view(), name='addresschange'),
    url(r'^addresses/(?P<address_id>\d+)/default/$', views.DefaultAddressView.as_view(), name='defaultAdd'),
    url(r'^addresses/(?P<address_id>\d+)/title/$', views.UpdateTitleAddressView.as_view(), name='titlechange'),
    url(r'^change_password/$', views.ChangePWDView.as_view(), name='changepassword'),
]